package com.orange.lockscreensettings;

import android.content.Context;
import android.preference.CheckBoxPreference;
import android.util.AttributeSet;
import android.view.View;
import android.widget.TextView;

public class LSCheckBoxPreference extends CheckBoxPreference {

	public LSCheckBoxPreference(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	public LSCheckBoxPreference(Context context) {
		this(context, null);
	}

	@Override
	protected void onBindView(View view) {
		super.onBindView(view);

		TextView tvTitle = (TextView) view.findViewById(android.R.id.title);
		if (tvTitle != null) {
			tvTitle.setSingleLine(false);
			tvTitle.setMaxLines(2);
		}
	}
}
